from django.urls import path,re_path
from . import views
from django.conf import settings
from django.conf.urls.static import static


urlpatterns =[
    path('',views.reg,name='reg'),
    path('login/',views.userlogin,name='login'),
    path('index/',views.index,name='index'),
    re_path('active/(?P<token>.*)$', views.ActiveView.as_view(), name='active'),

    path('pc-geetest/validate', views.pcvalidate, name='pcvalidate'),
    path('pc-geetest/register', views.pcgetcaptcha, name='pcgetcaptcha'),

    path('redis/', views.test_redis, name="redis"),
    path('send_sms/', views.send_sms, name="send_sms"),
    path('check_sms/', views.check_sms, name="check_sms"),

    path('info/',views.ginfo,name='info'),
    path('all/', views.allinfo, name='allinfo'),
    path('data/',views.data,name='data'),
    path('task/', views.task, name='task'),
    path('addtask/',views.addtask,name='addtask'),
    path('alltask/', views.alltask, name='alltask'),
    path('user_img/',views.user_img,name='user_img'),
    path('xz/',views.xz,name='xz'),
    path('lsupdate/',views.lsupdate,name='lsupdate'),
    path('wcqk/',views.wcqk,name='wcqk'),

    path('piedata/', views.PieView.as_view()),
    path('pie/', views.Bili_pieView.as_view()),
    re_path(r'^Bar/$', views.BarView.as_view()),


]+static(settings.MEDIA_URL,documment_root = settings.MEDIA_ROOT)